package com.ruoyi.production.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 化肥退回对象 fertilizer_return
 *
 * @author ruoyi
 * @date 2021-07-19
 */
public class FertilizerReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退回编号自动编号，主码 */
    private Long fertilizerReturnId;

    public Long[] getFertilizerReturnIds() {
        return fertilizerReturnIds;
    }

    public void setFertilizerReturnIds(Long[] fertilizerReturnIds) {
        this.fertilizerReturnIds = fertilizerReturnIds;
    }

    private Long fertilizerReturnIds[];
    /** 肥料类型 */
    private Long fertilizerTypeId;

    /** 肥料类型 */
    @Excel(name = "肥料类型名称")
    private String fertilizerType;

    /** 肥料名称 */
    private Long fertilizerNameId;

    /** 肥料名称 */
    @Excel(name = "肥料名称")
    private String fertilizerName;

    /** NPK含量 */
    @Excel(name = "NPK含量")
    private String npkContent;

    /** 肥料品牌 */
    @Excel(name = "肥料品牌")
    private String brand;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 退回量默认为0 */
    @Excel(name = "退回量")
    private Double returnAmount;

    /** 退回时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退回时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 退回人外码 */
    private Long userId;

    /** 退回人 */
    @Excel(name = "退回人名称")
    private String userName;

    public Long getApproval() {
        return approval;
    }

    public void setApproval(Long approval) {
        this.approval = approval;
    }

    /** 审批 */
    @Excel(name = "审核", readConverterExp = "0=未审核,1=审核通过,2=不通过")
    private Long approval;

    public void setFertilizerReturnId(Long fertilizerReturnId)
    {
        this.fertilizerReturnId = fertilizerReturnId;
    }
    public Long getFertilizerReturnId()
    {
        return fertilizerReturnId;
    }

    public void setFertilizerTypeId(Long fertilizerTypeId)
    {
        this.fertilizerTypeId = fertilizerTypeId;
    }
    public Long getFertilizerTypeId()
    {
        return fertilizerTypeId;
    }

    public void setFertilizerType(String fertilizerType) { this.fertilizerType = fertilizerType; }
    public String getFertilizerType() { return fertilizerType; }

    public void setFertilizerNameId(Long fertilizerNameId)
    {
        this.fertilizerNameId = fertilizerNameId;
    }
    public Long getFertilizerNameId()
    {
        return fertilizerNameId;
    }

    public void setFertilizerName(String fertilizerName) { this.fertilizerName = fertilizerName; }
    public String getFertilizerName() { return fertilizerName; }

    public void setNpkContent(String npkContent)
    {
        this.npkContent = npkContent;
    }
    public String getNpkContent()
    {
        return npkContent;
    }

    public void setBrand(String brand)
    {
        this.brand = brand;
    }
    public String getBrand()
    {
        return brand;
    }

    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }
    public String getOriginCompany()
    {
        return originCompany;
    }

    public void setReturnAmount(Double returnAmount)
    {
        this.returnAmount = returnAmount;
    }
    public Double getReturnAmount()
    {
        return returnAmount;
    }

    public void setReturnTime(Date returnTime)
    {
        this.returnTime = returnTime;
    }
    public Date getReturnTime()
    {
        return returnTime;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
    public Long getUserId()
    {
        return userId;
    }

    public void setUserName(String userName) { this.userName = userName; }
    public String getUserName() { return userName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fertilizerReturnId", getFertilizerReturnId())
            .append("fertilizerTypeId", getFertilizerTypeId())
            .append("fertilizerNameId", getFertilizerNameId())
            .append("npkContent", getNpkContent())
            .append("brand", getBrand())
            .append("originCompany", getOriginCompany())
            .append("returnAmount", getReturnAmount())
            .append("returnTime", getReturnTime())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
